package io.renren.modules.canteens.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.canteens.dao.AuxiliaryStatementDao;
import io.renren.modules.canteens.dto.AuxiliaryStatementDTO;
import io.renren.modules.canteens.entity.AuxiliaryStatementEntity;
import io.renren.modules.canteens.service.AuxiliaryStatementService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 辅材报表
 *
* @author 翟文闯 619556390@QQ.com
 * @since 1.0.0 2020-01-08
 */
@Service
public class AuxiliaryStatementServiceImpl extends CrudServiceImpl<AuxiliaryStatementDao, AuxiliaryStatementEntity, AuxiliaryStatementDTO> implements AuxiliaryStatementService {

    @Override
    public QueryWrapper<AuxiliaryStatementEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<AuxiliaryStatementEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}